package com.dominator.repository;

import com.dominFramework.core.dao.SqlDao;
import com.dominFramework.core.typewrap.Dto;
import com.dominFramework.core.typewrap.Dtos;
import com.dominator.mybatis.dao.T_order_noticePO;
import com.dominator.mybatis.dao.T_user_upgradePO;
import com.dominator.utils.dao.JdbcHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class DaoUserUpgrade {


    @Resource
    JdbcHelper jh;


    @Autowired
    SqlDao sqlDao;



    /**
     * 查询流水号对应的升级记录
     *
     * @param orderNoticeId
     * @return
     */
    public T_user_upgradePO selectByOrderId(String orderNoticeId) {
        Dto dto= Dtos.newDto("orderNoticeId",orderNoticeId);
        T_user_upgradePO row = (T_user_upgradePO) sqlDao.selectOne("UserUpgrade.selectByOrderId",dto);
        return row;
    }



}
